package org.bozo.im.service.protocols.xmpp.stanza.task.activity;

import org.bozo.im.service.IMService;
import org.bozo.im.service.protocols.xmpp.XMPPSession;
import org.bozo.im.service.protocols.xmpp.stanza.task.Task;

public class UpdateContactsTask extends Task {

	public UpdateContactsTask(String pId) {
		super(pId);
	}

	@Override
	public void doTask(XMPPSession pSession, StringBuilder pBuilder) throws Exception {
		IMService.getInstance().updateRoster();
	}

	@Override
	public boolean isUnique() {
		return true;
	}
}
